#!/bin/sh
if [ "$#" -ne 2 ]; then
    echo "Usage: $0  <created_folder_path>"
    exit 1
fi
new_exe=$1/kt_run_exe
echo $new_exe
escaped_content=$(echo "$new_exe" | sed 's/[\/&]/\\&/g')
# escaped_new_text=$(printf '%s\n' "$new_text" | sed 's/[&/\]/\\&/g')
# echo $escaped_new_text
# sed -i "4s/hello/executable: ${new_text}/" ../configs/selfcfg.cfg
sed -i '4s/.*/executable: '"$escaped_content"'/' ../configs/selfcfg.cfg